package com.tensquare.search.dao;

import com.tensquare.search.pojo.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

/**
 * @Author: Mr.Liu
 * @Description: 文章数据访问层接口
 * @Date: Created in 7:14 2020/5/22
 */
public interface ArticleSearchDao extends ElasticsearchRepository<Article, String> {
    /**
     *  检索
     * @param
     * @return
     */
    public Page<Article> findByTitleOrContentLike(String title, String content, Pageable pageable);
}
